I:/Documents/developpement/projets/C/blast/blastguy_wii_2.2/src/bomb.h File Reference

A bomb. More...

#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <SDL/sdl.h>
#include "sprite.h"
#include "map.h"
#include "flame.h"
#include "unit.h"

Include dependency graph for bomb.h:

This graph shows which files directly or indirectly include this file:


Functions

void bomb_update_timer (bomb *p_bomb)
 Update the bomb timer. Deincrement time_left.
void bomb_explode (bomb *p_bomb, map *p_map, flame **v_flame, int *flame_nb)
 Explode the bomb. This function must handle the type of explosion following the type of bomb and update the map status (tile flags).
void bomb_draw (bomb *p_bomb, SDL_Surface *destination)
 Draw the bomb on the destination surface.
void bomb_throw (bomb *p_bomb, map *p_map, int direction, int distance)

Detailed Description

A bomb.

Author:
DREVET Olivier
Date:
September 2008
Note:
ANSI c99 compliance. Published under the GPL 3 license (see license.txt for more info)

Function Documentation

void bomb_throw ( bomb *  p_bomb,
map p_map,
int  direction,
int  distance 
)

Parameters:
distance : distance in tiles


Generated on Tue Nov 4 21:07:19 2008 for Blastgu by  doxygen 1.5.4